import { Component } from '@angular/core';
import { AsyncPipe } from '@angular/common';
import { injectContent, MarkdownComponent } from '@analogjs/content';
import PostAttributes from '../../post-attributes';
@Component({
selector: 'app-blog-post',
imports: [AsyncPipe, MarkdownComponent],
template: `
@if (post$ | async; as post) {
}
`,
styles: `
.post__image {
max-height: 40vh;
}
`,
})
export default class BlogPost {
readonly post$ = injectContent('slug');
}